package com.luzhikun.EL_JSTL;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

/**
 * ClassName: Person
 * Description:
 * date: 2021/4/27 17:38
 *
 * @author luzhikun
 * @since JDK 1.8
 */
public class Person {
    private String name;
    private String[] phone;
    private List<String> cityNames;
    private Map map;

    public Person() {
    }

    public Person(String name, String[] phone, List<String> list, Map map) {
        this.name = name;
        this.phone = phone;
        this.cityNames = list;
        this.map = map;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String[] getPhone() {
        return phone;
    }

    public void setPhone(String[] phone) {
        this.phone = phone;
    }

    public List<String> getList() {
        return cityNames;
    }

    public void setList(List<String> list) {
        this.cityNames = list;
    }

    public Map getMap() {
        return map;
    }

    public void setMap(Map map) {
        this.map = map;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", phone=" + Arrays.toString(phone) +
                ", list=" + cityNames +
                ", map=" + map +
                '}';
    }
}
